package com.ygk.bluepath.core;

import com.lidroid.xutils.DbUtils;

import java.util.HashMap;

import utils.PostForPresenterUtil;

/**
 * Created by USER on 2016/7/8.
 */
public class BModel {
    protected BApp app = BApp.getInstance();
    protected BPresenter mPresenter;
    protected DbUtils locationDb=app.getLocationDB();//标识点和站点数据数据库
    public  BModel(BPresenter mPresenter){
        this.mPresenter=mPresenter;
    }


    public void doPost( String url, HashMap<String, Object> bMap, boolean canCancel, boolean showLoading, String oid, Object extraStr) {
        new PostForPresenterUtil(mPresenter,url,bMap,canCancel,showLoading,oid,extraStr).execute();
    }

    public DbUtils getLocationDb() {
        return locationDb;
    }

    public void setLocationDb(DbUtils locationDb) {
        this.locationDb = locationDb;
    }
}
